﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotClientService.Models.Lg;
/// <summary>
/// 注液判断条件
/// </summary>
public class LgLiquidJudge
{
    /// <summary>
    /// 注液前重量 上限值
    /// </summary>
    public string LiquidFrontMax { get; set; } = "0";
    /// <summary>
    /// 注液前重量 下限值
    /// </summary>
    public string LiquidFrontMin { get; set; } = "0";
    /// <summary>
    /// 注液后重量 上限值
    /// </summary>
    public string LiquidBackMax { get; set; } = "0";
    /// <summary>
    /// 注液后重量 下限值
    /// </summary>
    public string LiquidBackMin { get; set; } = "0";
    /// <summary>
    /// 2次注液量 上限值
    /// </summary>
    public string TwiceLiquidMax { get; set; } = "0";
    /// <summary>
    /// 2次注液量 下限值
    /// </summary>
    public string TwiceLiquidMin { get; set; } = "0";
    /// <summary>
    /// 电芯厚度 上限值
    /// </summary>
    public string CellThickMax { get; set; } = "0";
    /// <summary>
    /// 电芯厚度 下限值
    /// </summary>
    public string CellThickMin { get; set; } = "0";
    /// <summary>
    /// 胶钉高度 上限值
    /// </summary>
    public string AdhesiveNailHeightMax { get; set; } = "0";
    /// <summary>
    /// 胶钉高度 下限值
    /// </summary>
    public string AdhesiveNailHeightMin { get; set; } = "0";


    public override string ToString()
    {
        var msg= $"{LiquidFrontMax.PadLeft(7,'0')}{LiquidFrontMin.PadLeft(7,'0')}{LiquidBackMax.PadLeft(7,'0')}{LiquidBackMin.PadLeft(7,'0')}{TwiceLiquidMax.PadLeft(6,'0')}{TwiceLiquidMin.PadLeft(6,'0')}{CellThickMax.PadLeft(5,'0')}{CellThickMin.PadLeft(5,'0')}{AdhesiveNailHeightMax.PadLeft(8,'0')}{AdhesiveNailHeightMin.PadLeft(8,'0')}";
        return msg.PadRight(60, '0');
    }

}
